<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        arr=[23,15,67,13,46,57];
        function quickSort(arr){
            var len=arr.length;
            if(len<=1){
                return arr;
            }
            var pivot=arr[0]
            var small=[];
            var big=[];
            for(i=1;i<len;i++){
                if(arr[i]<=pivot){
                    small.push(arr[i])
                }else{
                    big.push(arr[i])
                }
            }
            return [...quickSort(small),pivot,quickSort(big)];
        }
        console.log(quickSort(arr));
        arr01=[1,3,5,7,9];
        arr02=[2,4,6,8];
        //数组的展开 ...,解构 
        console.log([arr01,arr02]);
        console.log([...arr01,...arr02]);
        //解构赋值
        var a,b;
        [a,b]=arr01;
        console.log(a,b);
    </script>
</body>
</html>